//
//  NoConnectionBgVideo.m
//  sensen_ios
//
//  Created by mc on 16/6/6.
//  Copyright © 2016年 pro. All rights reserved.
//

#import "NoConnectionBgVideo.h"
#import "DevicePowerView.h"


@implementation NoConnectionBgVideo

- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
    

        self.backgroundColor = rgba(36, 25, 21, 1);
        CGFloat width = frame.size.width;
        CGFloat high = frame.size.height;
        
        //有效视图整体
        UIView *view = [[UIView alloc] initWithFrame:CGRectMake(width / 2 - 100, high / 2 - 30, 200, 60)];
        [self addSubview:view];
        UIImageView *imageView = [[UIImageView alloc] init];
        imageView.frame = CGRectMake(10, 2.5, 25, 25);
        imageView.image = [UIImage imageNamed:@"我家的鱼缸_04"];
        [view addSubview:imageView];
        
        UILabel *topLabel = [[UILabel alloc] init];
        topLabel.text = @"视频无连接";
        topLabel.frame = CGRectMake(30, 0 , 150, 30);
        topLabel.backgroundColor = [UIColor clearColor];
        topLabel.textAlignment = NSTextAlignmentCenter;
        topLabel.textColor = [UIColor whiteColor];
        topLabel.font = FONT(18);
        [view addSubview:topLabel];
        UILabel *bottomLable = [[UILabel alloc] init];
        bottomLable.frame = CGRectMake(0, 30, 250, 30);
        bottomLable.text = @"请点击视频观看或连接摄像头！";
        bottomLable.backgroundColor = [UIColor clearColor];
        bottomLable.textAlignment = NSTextAlignmentCenter;
        bottomLable.textColor = [UIColor whiteColor];
        bottomLable.font = FONT(16);
        [view addSubview:bottomLable];
    }
    return self;
}



@end
